package com.erpx.api.basedata;

import com.erpx.api.CommonConstants;
import com.erpx.api.WdtClient;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class QueryShopService {
    public static void queryShopList() {
        WdtClient client = new WdtClient(CommonConstants.sid, CommonConstants.appkey, CommonConstants.appSecret, CommonConstants.baseUrl);

        Map<String, String> params = new HashMap<String, String>();
        params.put("page_no", "0");
        params.put("page_size", "100");
        try {
            String response = client.execute("shop.php", params);
            System.out.println(response);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
